﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Models
{
    public class Product
    {
        //商品表
        private int id;//主键
        private string proname;//商品名
        private int protype;//外键产品类型
        private string proylcd;//原料产地
        private string place;//产地
        private string burd;//配料表
        private string speci;//产品规格
        private string expir;//保质期
        private string norm;//产品标准号，默认GB开头
        private string perms;//生产许可证，默认QS开头
        private string way;//食用方法
        private string thumbnail;//缩略图
        private string pic;//图片名称
        private decimal price;//价格
        private int remark;//外键评论
        private int stroe;//所属店铺
        private string cont;
        private string date;//评论时间
        
        public Product() { }

        public Product(string speci)
        {
            this.speci = speci;
        }
        public Product( string pic,string proname,string speci,decimal price,int id)
        {
            this.pic = pic;
            this.proname = proname;
            this.speci = speci;
            this.price = price;
            this.id = id;
        }


        public Product(int id, string proname,decimal price,string pic)
        {
            this.id = id;
            this.proname = proname;
            this.price = price;
            this.pic = pic;
        }

        public Product(string pic,string proname,string cont)
        {
            this.pic = pic;
            this.proname = proname;
            this.cont = cont;

        }
        public Product(decimal price, string proname, string pic) 
        {
            this.price = price;
            this.proname = proname;
            this.pic = pic;
        }
        public Product( string proname, int protype, string proylcd, string place, string burd, string speci, string expir, string norm, string perms, string way, string pic, decimal price, int remark, int stroe)
        {
            this.proname = proname;
            this.protype = protype;
            this.proylcd = proylcd;
            this.place = place;
            this.burd = burd;
            this.speci = speci;
            this.expir = expir;
            this.norm = norm;
            this.perms = perms;
            this.way = way;
            this.pic = pic;
            this.price = price;
            this.remark = remark;
            this.stroe = stroe;
        }
        public Product(int id, string proname, int protype, string proylcd, string place, string burd, string speci, string expir, string norm, string perms, string way, string thumbnail, string pic, decimal price, int stroe)
        {
            this.id = id;
            this.proname = proname;
            this.protype = protype;
            this.proylcd = proylcd;
            this.place = place;
            this.burd = burd;
            this.speci = speci;
            this.expir = expir;
            this.norm = norm;
            this.perms = perms;
            this.way = way;
            this.thumbnail = thumbnail;
            this.pic = pic;
            this.price = price;
            this.stroe = stroe;
        }

        public Product(int id, string proname, int protype, string proylcd, string place, string burd, string speci, string expir, string norm, string perms, string way, string pic, decimal price, int remark, int stroe)
        {
            this.id = id;
            this.proname = proname;
            this.protype = protype;
            this.proylcd = proylcd;
            this.place = place;
            this.burd = burd;
            this.speci = speci;
            this.expir = expir;
            this.norm = norm;
            this.perms = perms;
            this.way = way;
            this.pic = pic;
            this.price = price;
            this.remark = remark;
            this.stroe = stroe;
        }

        public Product(int id, string proname, int protype, string proylcd, string place, string burd, string speci, string expir, string norm, string perms, string way, string thumbnail, string pic, decimal price, int remark, int stroe)
        {
            this.id = id;
            this.proname = proname;
            this.protype = protype;
            this.proylcd = proylcd;
            this.place = place;
            this.burd = burd;
            this.speci = speci;
            this.expir = expir;
            this.norm = norm;
            this.perms = perms;
            this.way = way;
            this.thumbnail = thumbnail;
            this.pic = pic;
            this.price = price;
            this.remark = remark;
            this.stroe = stroe;
        }

        public int Id { get => id; set => id = value; }
        public string Proname { get => proname; set => proname = value; }
        public int Protype { get => protype; set => protype = value; }
        public string Proylcd { get => proylcd; set => proylcd = value; }
        public string Place { get => place; set => place = value; }
        public string Burd { get => burd; set => burd = value; }
        public string Speci { get => speci; set => speci = value; }
        public string Expir { get => expir; set => expir = value; }
        public string Norm { get => norm; set => norm = value; }
        public string Perms { get => perms; set => perms = value; }
        public string Way { get => way; set => way = value; }
        public string Pic { get => pic; set => pic = value; }
        public decimal Price { get => price; set => price = value; }
        public int Remark { get => remark; set => remark = value; }
        public int Stroe { get => stroe; set => stroe = value; }
        public string Cont { get => cont; set => cont = value; }
        public string Thumbnail { get => thumbnail; set => thumbnail = value; }
        public string Date { get => date; set => date = value; }
    }
}
